<template>
	<view class="empty-show" :style="emptyStyle">
		<image class="empty-img" :src="'/static/'+imgUrl" mode="widthFix"></image>
		<view style="padding-bottom: 20rpx;">
			<slot>
				<text>购物车空空如也~</text>
			</slot>
		</view>
		<navigator url="/pages/cate/cate" open-type="switchTab" hover-class="other-navigator-hover">
			<text class="goshop-btn">去逛逛</text>
		</navigator>
	</view>
</template>

<script>
	export default {
		name: "empty-show",
		props: {
			imgUrl: {
				type: String,
				default: 'empty-02.png',
			},
			emptyStyle: {
				type: String,
			}
		},
		data() {
			return {

			};
		}
	}
</script>

<style lang="scss">
	.empty-show {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding-top: 100rpx;
	}

	.empty-img {
		width: 400rpx;
		margin-bottom: 50rpx;
	}

	.goshop-btn {
		color: #f00;
	}
</style>
